<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<link href="./css/modern.css" rel="stylesheet">
<link href="./css/style-student-group.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body>
	<%
		String firstname = (String) request.getAttribute("firstname");
		String lastname = (String) request.getAttribute("lastname");
		String courseNumber = (String) request.getAttribute("courseNumber");
		String sectionNumber = (String) request.getAttribute("sectionNumber");
		String groupNumber = (String) request.getAttribute("groupNumber");
		String studentID = (String) request.getAttribute("studentID");
		String division = (String) request.getAttribute("division");
	%>
	<div id="container">
		<div id="header">
			<br>
			<h1 id="main-title">
				<b><font color="000000"> EECE Student Group Assessments</b></font>
			</h1>
			<h2>
				Welcome
				<%=firstname%>
				<%=lastname%>
				! Here are your Group Members for <%=courseNumber%> Section <%=sectionNumber%><a href="index.html">
					<p align="right">
						<font size="5">Logout</font>
					</p>
				</a>
			</h2>
		</div>
		<div id="body">
			<br> 
			<form id=form method="post" action="StudentBackPortalServlet">
             	<a href = "javascript:;" onclick="document.getElementById('form').submit();" class="back-button big page-back">
             		<input type = "hidden" name = "firstname" value = <%=firstname%>>
					<input type = "hidden" name = "lastname" value = <%=lastname%>>	
             		<input type = "hidden" name = "studentID" value = <%=studentID%>>	
             	</a>
            </form>
			<div id="innerBody" class="page-region-content tiles">
				<h1>Student Portal</h1>
				<div class="tile-group" align="left">
						<table cellspacing="0" cellpadding="0" border="0" width="100px"
							class="striped" border=0>
							<tr>
							<td><b>Group <%=division%><%=groupNumber%>:</b></td>
							</tr>
							<c:forEach items="${groupList}" var="Info">
								<tr>
									<td><c:out value="${Info.firstName}"/> <c:out value="${Info.lastName}"/> </td>
								</tr>
							</c:forEach>
						</table>
						<div align="left">
						</div>
				</div>
			</div>
		</div>
		<div id="footer">
			&copy;UBC Electrical and Computer Engineering. Styled with <a
				href="http://metroui.org.ua">Metro UI CSS</a>
		</div>
	</div>
</body>
</html>